<script type="text/javascript">
function language(lng)
{
  if (confirm('Did you save data befor changing language?'))
    location.href = "/test.php/lt/system/setlng?lng=" + lng;
}
</script>
<?php echo  select_tag('lng'
                    , options_for_select(MyConstants::getLngList()
                                            , $sf_user->getCulture())
                        , array('onchange' => "language(this.value)"
                            ))?>